#include "stdafx.h"
#include "Person.h"


Person::Person(string first, string last, int artitrary) : firstname(first), lastname(last), arbitrarynumber(artitrary)
{
}

//Person::Person (const Person& p): firstname(p.firstname), lastname(p.lastname), arbitrarynumber(p.arbitrarynumber)
//{
//	pResource.reset(new Resource(p.GetResource()));
//}
//Person Person::operator=(const Person& p)
//{
//	firstname = p.firstname;
//	lastname = p.lastname;
//	arbitrarynumber = p.arbitrarynumber;
//	return *this;
//}
Person::~Person(void)
{
}


string Person::GetName(void)
{
	return firstname+" "+lastname;
}

void Person::SetResource (string resource) 
{
	
	//pResource.reset(new Resource(resource));
	pResource = make_shared<Resource>(resource);
}